package io.github.lamtong.osgi;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * {@code Hello World}{@link BundleActivator} 实现类.
 *
 * @author Lam Tong
 */
public class SimpleBundleActivator implements BundleActivator {

    private static final Logger logger = Logger.getLogger(SimpleBundleActivator.class.getName());

    @Override
    public void start(BundleContext context) {
        logger.log(Level.INFO, "Bundle starts");
    }

    @Override
    public void stop(BundleContext context) {
        logger.log(Level.INFO, "Bundle stops");
    }

}
